# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-numpoly
_pkgorig=numpoly
pkgver=1.2.14
pkgrel=0
pkgdesc="Numpy compatible polynomial representation"
url="https://github.com/jonathf/numpoly"
arch="noarch !armhf !armv7 !x86 !ppc64le" # failed tests on 32 bit
license="BSD-2-Clause"
depends="python3 py3-numpy"
checkdepends="py3-pytest py3-sympy"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
subpackages="$pkgname-pyc"
source="https://github.com/jonathf/numpoly/archive/v$pkgver/$_pkgorig-$pkgver.tar.gz"
builddir="$srcdir/numpoly-$pkgver"
options="!check" # temporary fix - numpy deprecations

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	python3 -m pytest
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
d97b981bf0a6afecf43148e67c45577416932100e00a71728ab07a36127942404db28348410649963ce2fc1748cc85f92f2b50fedece7f2a8e8a05a87a9f953f  numpoly-1.2.14.tar.gz
"
